﻿using System.Collections.Generic;
using DataAccess.Models;

namespace DataAccess.Repository.Interface
{
    /// <summary>
    /// 工作动态
    /// </summary>
   public interface IDynamicWorkRepository
    {
        /// <summary>
        ///新增工作动态
        /// </summary>
        /// <param name="wn"></param>
        /// <returns></returns>
       bool CreateWorkNews(WorkNews wn);
        /// <summary>
       /// 编辑工作动态
        /// </summary>
       /// <param name="wn"></param>
        /// <returns></returns>
       bool EditWorkNews(WorkNews wn);
        /// <summary>
       /// 获取工作动态分页
        /// </summary>
        /// <param name="keys">名称</param>
        /// <param name="PageSize"></param>
        /// <param name="PageIndex"></param>
        /// <param name="PageCount"></param>
        /// <param name="rowCount"></param>
        /// <returns></returns>
       IList<WorkNews> GetWorkNewsListPageing(string keys, int PageSize, int PageIndex, out int PageCount, out int rowCount);
        /// <summary>
       /// 获取工作动态信息内容
        /// </summary>
       /// <param name="wnid"></param>
        /// <returns></returns>
       WorkNews GetDetailWorkNews(int wnid);
        /// <summary>
       /// 删除工作动态
        /// </summary>
       /// <param name="wnIDs"></param>
        /// <returns></returns>
       bool DeleteWorkNews(List<int> wnIDs);
    }
}
